"use strict"
/**
 *
 * @param {import("egg").Application} app
 */
module.exports = app => {
	const Sequelize = app.Sequelize
	const sequelize = app.model

	let Module = sequelize.define("module", {
		id: {
			type: Sequelize.INTEGER,
			primaryKey: true,
		},
		module_name: {
			type: Sequelize.STRING,
			comment: "模块名字",
		},
		// applyTypeList: {
		// 	type: Sequelize.JSON,
		// 	comment: "允许应用到的类型",
		// 	field: "apply_type_list"
		// },
		union_stat: {
			type: Sequelize.BOOLEAN,
			comment: "是否是联合模块,1为是,0为否"
		}
	}, {
		tableName: "module",
		timestamps: false,
		deletedAt: false,
	})
	return Module
}


